/*
 * Copyright (c) GoKeep by gokeep.org. 2022-2023. All rights reserved
 */
package org.gokeep.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 用户在线状态
 *
 * @author xuning
 */

@Getter
@AllArgsConstructor
public enum OnlineStatusEnum {
    /**
     * 用户在线状态invisible
     */
    OFFLINE(0, "离线"),
    ONLINE(1, "在线状态"),
    INVISIBLE(2, "隐身");
    /**
     * 在线状态码，用于二进制传输
     */
    private final int code;
    /**
     * 状态描述
     */
    private final String desc;
}
